home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / livejournal.xml < prev    next >
Extensible Markup Language  |  2007-10-12  |  3KB  |  101 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="livejournal"
  3.          version="$Id: livejournal.xml 13478 2007-07-19 19:45:26Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <strings>
  7.     <string name="domains" value="livejournal.com"/>
  8.     <string name="homepage">
  9.       <![CDATA[http://www.livejournal.com/]]>
  10.     </string>
  11.     <string name="userlogin">
  12.       <![CDATA[http://www.livejournal.com/]]>
  13.     </string>
  14.     <string name="userprofile">
  15.       <![CDATA[http://%accountid%.livejournal.com/profile]]>
  16.     </string>
  17.     <string name="editprofile">
  18.       <![CDATA[http://www.livejournal.com/manage/profile/]]>
  19.     </string>
  20.     <string name="userblog">
  21.       <![CDATA[http://%accountid%.livejournal.com/]]>
  22.     </string>
  23.     <string name="userfriends">
  24.       <![CDATA[http://%accountid%.livejournal.com/friends]]>
  25.     </string>
  26.     <string name="userphotos">
  27.       <![CDATA[http://pics.livejournal.com/%accountid%]]>
  28.     </string>
  29.     <string name="userpics">
  30.       <![CDATA[http://www.livejournal.com/allpics.bml?user=%accountid%]]>
  31.     </string>
  32.     <string name="userfoaf">
  33.       <![CDATA[http://www.livejournal.com/users/%accountid%/data/foaf]]>
  34.     </string>
  35.   </strings>
  36.  
  37.   <sessioncookies>
  38.     <cookie host=".livejournal.com" name="ljloggedin" path="/"/>
  39.     <cookie host=".livejournal.com" name="ljsession" path="/"/>
  40.   </sessioncookies>
  41.  
  42.   <detect type="login">
  43.     <url domain="livejournal.com"/>
  44.     <form>
  45.       <field tagname="input" name="user" extractas="username"/>
  46.       <field tagname="input" name="password"/>
  47.     </form>
  48.   </detect>
  49.  
  50.   <detect type="signup">
  51.     <url domain="livejournal.com"><path contains="create"/></url>
  52.     <form>
  53.       <field tagname="input" name="user" extractas="username"/>
  54.       <field tabname="input" name="password2" type="password" extractas="password"/>
  55.     </form>
  56.   </detect>
  57.  
  58.   <detect type="loggedin">
  59.     <xpath><![CDATA[//form[@id="Greeting"][contains(@action,"logout")]]]></xpath>
  60.   </detect>
  61.  
  62.   <detect type="loggedin">
  63.     <xpath><![CDATA[//div/div/div//div[@id="WelcomeLinks"]/a/text()[contains(.,"Logout")]]]></xpath>
  64.   </detect>
  65.  
  66.   <detect type="loggedout">
  67.     <xpath><![CDATA[//form[@id="login"]]]></xpath>
  68.   </detect>
  69.  
  70.   <detect type="loggedout">
  71.     <cookie nomatch="true" host=".livejournal.com" name="ljloggedin"/>
  72.   </detect>
  73.  
  74.   <detect type="accountinfo">
  75.     <xpath>
  76.       <![CDATA[//form[@id="Greeting"][contains(@action,"logout")]//input[@name="user"]/@value]]>
  77.       <regexp re1="accountid"><![CDATA[/(.*)/]]></regexp>
  78.     </xpath>
  79.   </detect>
  80.  
  81.   <detect type="accountinfo">
  82.     <conditions>
  83.       <xpath><![CDATA[//div/div/div//div[@id="WelcomeLinks"]/a/text()[contains(.,"Logout")]]]></xpath>
  84.     </conditions>
  85.     <results>
  86.       <regexp re1="accountid">
  87.         <![CDATA[/logout.bml\?user=([^&]+)&/]]>
  88.       </regexp>
  89.     </results>
  90.   </detect>
  91.  
  92.   <detect type="person">
  93.     <url>
  94.       <regexp re1="friendrequest">
  95.         <![CDATA[/http...(\w+)/]]>
  96.       </regexp>
  97.     </url>
  98.   </detect>
  99.  
  100. </service>
  101.